<!DOCTYPE html>
<html lang="en">
<head>
<title>重庆大学研究生招生服务系统</title>
<?php $this->load->view('includes/gass_head'); ?> 
</head>
<body>
<div id="container"><div id="header"><?php $this->load->view('includes/gass_header'); ?></div>
<div id="pagebody">
<?php $this->load->view('includes/gass_menu'); ?>
<div id="mainbody">
<h1>招生宣传活动一览</h1>
<?php echo form_open(current_url());?> 
<?php if (! empty($message)) { ?><div id="message"><?php echo $message; ?></div><?php } ?>		
<fieldset>
<legend>搜  索</legend> 
<ul>
	<li><label>关键字:</label><input title="招生宣传会名称的模糊查询" type="text" name="search_key_words" value="<?php echo $search_key_words; ?>" />
	<input style="margin-left:15px" name="search_submit" type="submit" value="搜  索" />
	<a href="<?php echo $base_url; ?>gass_recruit/manage_recruit">重置</a>
	</li>	
</ul>
</fieldset>
<a href="<?php echo $base_url; ?>gass_recruit/add_new_recruit">新增宣传活动</a>					
<TABLE>
  <THEAD>
  <TR>
		<th scope=col>招生宣传名称</th>
		<th scope=col>有效期</th>
		<th scope=col>删除</th>
  </TR>
  </THEAD> 
  <?php if (!empty($recruitListInfo)) { ?>
	<tbody>
		<?php foreach ($recruitListInfo as $rli) { ?> 
  <?php 
  $t1 = date("Y-m-d",time());
  $t2 = substr($rli['activity_over'],0,10);
  ?>	
		<tr>	
			<td <?php echo ($t1 > $t2)?"style='color:#CCCCCC'":""; ?> ><?php echo $rli['activity_alias'];?></td>
			<td <?php echo ($t1 > $t2)?"style='color:#CCCCCC'":""; ?> ><?php echo $rli['activity_begin'].'————'.$rli['activity_over'];?></td>
			<td><input type="checkbox" name="delete_activity[<?php echo $rli['activity_id'];?>]" value="1"/></td>
		</tr>
	<?php } ?>
	</tbody>
	<TFOOT>
     <TR>
        <TD colSpan=2><?php if (! empty($pagination['links'])) { ?>
            总数: 共 <?php echo $pagination['total_recruit'];?> 条查询结果
            链接: <?php echo $pagination['links'];?>
            <?php } ?>
        </TD> 
        <td colSpan=1><input type="submit" name="update_recruits" value="删除活动"/></td>
     </TR>
  </TFOOT>
	<?php } else { ?>
	<tbody>
		<tr>
			<td colspan="3" class="highlight_red">
				没有任何招生宣传活动信息
			</td>
		</tr>
	</tbody>
	<?php } ?>
</TABLE> 					
<?php echo form_close();?>
    </div>
  </div>
  <?php $this->load->view('includes/gass_footer'); ?>
</div>
</div>
<!-- Scripts --> 	
<?php $this->load->view('includes/scripts'); ?>
</body>
</html>